import React,{Component} from 'react';
class Title extends Component {
  static contextTypes={
    themeColor:PropTypes.string
  }
  render () {
    return {
      <h1 style={{color:this.context.themeColor}}>标题</h1>
    }
  }
}
export default Title;